<?php

use app\helpers\UserHelper;
use app\models\GroupUser;
use yii\helpers\Html;
use yii\helpers\Url;
use yii\web\View;
use yii\widgets\ActiveForm;

/* @var $model GroupUser */
/* @var $this View */


?>

<?php $form = ActiveForm::begin(['enableClientScript' => FALSE]); ?>

<?= $form->field($model, 'group_num')->textInput(['readonly' => true]); ?>
<?= $form->field($model, 'phone')->textInput(); ?>
<?= $form->field($model, 'role')->dropDownList(UserHelper::$roles); ?>
<?= $form->field($model, 'group_priority')->dropDownList(UserHelper::$userPriority); ?>

<div class="form-group">
    <?= Html::submitButton('提交', ['class' => 'btn btn-block ladda-button', 'data-style' => 'zoom-in', 'redirect' => Url::to(['group/'])]) ?>
</div>
<?php ActiveForm::end(); ?>


